﻿namespace LJ.Abstractions.Config;

/// <summary>
/// 选项模式提供器
/// </summary>
public interface IConfigProvider
{
    /// <summary>
    /// 获取
    /// </summary>
    /// <typeparam name="TConfig"></typeparam>
    /// <param name="key"></param>
    /// <returns></returns>
    TConfig Get<TConfig>(string key) where TConfig : class;

    /// <summary>
    /// 获取
    /// </summary>
    /// <typeparam name="TConfig"></typeparam>
    /// <returns></returns>
    TConfig Get<TConfig>() where TConfig : class;
}